
import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	productid: string;
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { exec, prepare } = query(action_id, session_id, '11');
	prepare('product_clent_type', ['flag', 'productid', 'client_style', 'client_point_id', 'field_name'], { productid: msg.productid, client_style: { $ne: 'desk' } }, 200, 1, [], []);
	const [data] = await exec();
	return { dataArray: data };
}
